<?php

date_default_timezone_set("PRC");
$set_time = time();
$ret_time = set_time("2019-03-26 00:00:00");
$time = $ret_time-$set_time;


$day = floor($time / (24 * 60 * 60));
$hour = floor($time % (24 * 60 * 60) / (60 * 60));
$min = floor($time % (24 * 60 * 60) / (60 * 60) / 60);
$sec = floor($time % (24 * 60 * 60) / (60 * 60) % 60);


echo json_encode(['day'=>$day,'hour'=>$hour,'min'=>$min,'sec'=>$sec]);